<template>
    <div id="OrderdetailLottable">
        <g-details :detailData="data.detailData" :inputConfig="inputConfig" :rules="rules"></g-details>
    </div>
</template>

<script>
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        name: "OrderdetailLottable",
        mixins: [baseMixin],
        props: {
            data: {
                type: Object
            }
        },
        data() {
            return {
                inputConfig: [
                        {
                            type: "input",
                            label: this.$t('outbound.userlinenumber'),
                            props: "orderlinenumber",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'01'}),
                            props: "lottable01",
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'02'}),
                            props: "lottable02",
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'03'}),
                            props: "lottable03",
                        },
                        {
                            type: "date",
                            label: this.$t('in.lottable04'),
                            props: "lottable04",
                        },
                        {
                            type: "date",
                            label: this.$t('in.lottable05'),
                            props: "lottable05",
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'06'}),
                            props: "lottable06",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'07'}),
                            props: "lottable07",
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'08'}),
                            props: "lottable08",
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'09'}),
                            props: "lottable09",
                        },
                        {
                            type: "input",
                            label: this.$t('config.batchProp',{no:'10'}),
                            props: "lottable10",
                        },
                        {
                            type: "date",
                            label: this.$t('in.lottable11'),
                            props: "lottable11",
                        },
                        {
                            type: "date",
                            label: this.$t('in.lottable12'),
                            props: "lottable12",
                        },
                ],
                rules: {
                    orderlinenumber: [
                        {required: true, trigger: 'blur'},
                    ],
                    lottable06: [
                        {required: true, trigger: 'blur'},
                    ]
                },
            }
        },
        methods: {},
        mounted() {
        },
        watch: {},
    }
</script>

<style scoped>

</style>
